Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Towards controlled VTOL transitions #14405

Merged
merged 8 commits into from Apr 2, 2020
Merged

Conversation

RomanBapst
Copy link
Contributor

@RomanBapst RomanBapst commented Mar 17, 2020

This PR enables following features for standard VTOL and tiltrotors:

  • deceleration control via pitch during transition
  • lateral control using fixed wing L1 controller

The above features can greatly improve path tracking during transition and reduce overshooting effects. Below you can see an example of a simple mission with the old state and the new state.
This PR also enables direction control in manual modes for both front and back-transition. This is very useful as you can still try to avoid obstacles during transitions.

This now needs a lot of testing in order to identify corner cases and improvements.

Master:
mission_master

This pull request:
mission_PR

@RomanBapst RomanBapst assigned sfuhrer and RomanBapst and unassigned sfuhrer Mar 17, 2020
@RomanBapst
Copy link
Contributor Author

@PX4/testflights Do you guys have a VTOL for testing still?

@Tony3dr Tony3dr added this to Ready for testing in Test Flights Mar 17, 2020
Copy link
Member

@bresch bresch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Basically the FF depends on the pitch-to-drag coefficient, correct? I guess it shouldn't be difficult to tune but might require some documentation.

src/modules/vtol_att_control/vtol_type.cpp Outdated Show resolved Hide resolved
src/modules/vtol_att_control/vtol_type.cpp Outdated Show resolved Hide resolved
src/modules/vtol_att_control/vtol_type.cpp Outdated Show resolved Hide resolved
src/modules/vtol_att_control/vtol_type.cpp Outdated Show resolved Hide resolved
src/modules/vtol_att_control/vtol_type.h Outdated Show resolved Hide resolved
@RomanBapst
Copy link
Contributor Author

@bresch Thanks for the review!

bresch
bresch previously approved these changes Mar 19, 2020
Copy link
Member

@bresch bresch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RomanBapst Please attach the logs of the flight tests

* @increment 0.5
* @group VTOL Attitude Control
*/
PARAM_DEFINE_FLOAT(VT_B_DEC_SP, 2.0f);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In which scenarios does this parameter differ from VT_B_DEC_MSS?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dayjaby I have already prepared a commit which merged those two parameters, will push asap.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dayjaby This is not fixed by the way.

@dannyfpv
Copy link

dannyfpv commented Mar 24, 2020

Tested on Pixhawk 4 mini v5 v-tol Convergence
Wind Speed: 4.6 m/s
Modes Tested:
Position Mode: Good.
Mission mode: good

Daily master log:
https://review.px4.io/plot_app?log=0ef0f2db-7f12-438e-88ba-7694b917eb44

Pr log:
https://review.px4.io/plot_app?log=6a0c05f9-dfab-42b5-8b76-11d8151b0efd

Notes:
We did a short mission, take off In position mode, switched to Mission mode, the vehicle completed the waypoints, RTL trigerred, switched back to position and landed the vehicle manually. Good flight no issues.

@mrpollo mrpollo mentioned this pull request Mar 25, 2020
RomanBapst and others added 8 commits April 2, 2020 09:22
Signed-off-by: RomanBapst <bapstroman@gmail.com>

# Conflicts:
#	src/lib/flight_tasks/tasks/Transition/FlightTaskTransition.cpp
…tion

Signed-off-by: RomanBapst <bapstroman@gmail.com>
- use track angle to calculate the current forward acceleration

Signed-off-by: RomanBapst <bapstroman@gmail.com>
Signed-off-by: RomanBapst <bapstroman@gmail.com>
Signed-off-by: RomanBapst <bapstroman@gmail.com>
Co-Authored-By: Mathieu Bresciani <brescianimathieu@gmail.com>
Signed-off-by: RomanBapst <bapstroman@gmail.com>
@RomanBapst
Copy link
Contributor Author

@hamishwillee You've pinged me on another doc PR regarding the docs of transition. This will need an update in the docs. I can propose the changes.

@RomanBapst RomanBapst merged commit 2522435 into master Apr 2, 2020
Test Flights automation moved this from Ready for testing to Done Apr 2, 2020
@RomanBapst RomanBapst deleted the pr-controlled_backtransition branch April 2, 2020 10:45
@hamishwillee
Copy link
Contributor

You've pinged me on another doc PR regarding the docs of transition. This will need an update in the docs. I can propose the changes.

@RomanBapst Awesome - when?

FYI the PR you refer to was merged: PX4/PX4-user_guide#702

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Test Flights
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

7 participants